package com.ruoyi.smart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品型号对象 smart_product_model
 * 
 * @author minwei
 * @date 2022-04-07
 */
public class SmartProductModel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 中文名称 */
    @Excel(name = "中文名称")
    private String nameZh;

    /** 英文名称 */
    @Excel(name = "英文名称")
    private String nameUs;

    /** PN号 */
    @Excel(name = "PN号")
    private String pnId;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String model;

    /** 产品描述 */
    @Excel(name = "产品描述")
    private String description;

    /** 产品照片 */
    @Excel(name = "产品照片")
    private String image;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String createUserId;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNameZh(String nameZh) 
    {
        this.nameZh = nameZh;
    }

    public String getNameZh() 
    {
        return nameZh;
    }
    public void setNameUs(String nameUs) 
    {
        this.nameUs = nameUs;
    }

    public String getNameUs() 
    {
        return nameUs;
    }
    public void setPnId(String pnId) 
    {
        this.pnId = pnId;
    }

    public String getPnId() 
    {
        return pnId;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setCreateUserId(String createUserId) 
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId() 
    {
        return createUserId;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nameZh", getNameZh())
            .append("nameUs", getNameUs())
            .append("pnId", getPnId())
            .append("model", getModel())
            .append("description", getDescription())
            .append("image", getImage())
            .append("state", getState())
            .append("createUserId", getCreateUserId())
            .append("createDate", getCreateDate())
            .toString();
    }
}
